// 请求方式
const METHOD = {
  GET: 'GET',
  POST: 'POST',
}

// 服务名
export const SERVERS_ALIAS = {
  MAIN: Symbol('MAIN'),   //原始数据类型Symbol，表示独一无二的值
  WX_BASE: Symbol('WX_BASE'),
  SMK_BASE: Symbol('SMK_BASE'),
}

// 接口名
export const PATHS_ALIAS = {
  // 首页接口
  GET_HOME_PARTLIST: Symbol('GET_HOME_PARTLIST'),
  // 登录-code换取用户信息
  GET_OPEN_INFO: Symbol('GET_OPEN_INFO'),
  // 获取unionId
  GET_UNION_ID: Symbol('GET_UNION_ID'),
  // 第三方登陆判断
  THIRD_USER_LOGIN: Symbol('THIRD_USER_LOGIN'),
  // 判断输入手机是否存在及绑定第三方账户
  CHECK_THIRD_USER_EXIST: Symbol('CHECK_THIRD_USER_EXIST'),
  // 发送注册验证码
  SEND_REGISTER_MSG: Symbol('SEND_REGISTER_MSG'),
  // 发送登录验证码
  SEND_LOGIN_MSG: Symbol('SEND_LOGIN_MSG'),
  // 登录--未注册手机号
  CHECK_REGIEST_WITHOUT_PASS: Symbol('CHECK_REGIEST_WITHOUT_PASS'),
  // 登录--已注册手机号
  LOGIN_MSG_CHECK: Symbol('LOGIN_MSG_CHECK'),

}

// 域名接口管理
export const SERVERS_INFO = {
  [SERVERS_ALIAS.MAIN]: {
    host: 'http://192.168.23.200:8086',   //测试
    desc: '主要接口'
  },
  [SERVERS_ALIAS.WX_BASE]: {
    host: 'http://115.236.162.166:18081/smk_weixin_test/miniapp',   //测试
    // host: 'http://192.168.2.52:8084/smk_weixin/miniapp',   //代工
    // host:'https://weixin.96225.com',   //正式
    desc: '小程序',
  },
  [SERVERS_ALIAS.SMK_BASE]: {
    host: 'http://192.168.23.211:8084/smkcenter/login/1.0.0',   //测试
    desc: '平台组统一登录相关接口',
  },
}

// 接口统一管理
export const PATHS_INFO = {
  [PATHS_ALIAS.GET_HOME_PARTLIST]: {
    server: SERVERS_ALIAS.MAIN,   //域名
    method: METHOD.GET,           //请求方式
    path: '/smk_city_activity/home/getHPPartList.ext',  //请求地址
  },
  [PATHS_ALIAS.GET_OPEN_INFO]: {
    server: SERVERS_ALIAS.WX_BASE,
    method: METHOD.POST,
    path: '/openIdByType.ext',
  },
  [PATHS_ALIAS.GET_UNION_ID]: {
    server: SERVERS_ALIAS.WX_BASE,
    method: METHOD.POST,
    path: '/userInfoByType.ext',
  },
  [PATHS_ALIAS.THIRD_USER_LOGIN]: {
    server: SERVERS_ALIAS.SMK_BASE,
    method: METHOD.POST,
    path: '/ThirdUserLogin',
  },
  [PATHS_ALIAS.CHECK_THIRD_USER_EXIST]: {
    server: SERVERS_ALIAS.SMK_BASE,
    method: METHOD.POST,
    path: '/checkThirdUserExist',
  },
  [PATHS_ALIAS.SEND_REGISTER_MSG]: {
    server: SERVERS_ALIAS.SMK_BASE,
    method: METHOD.POST,
    path: '/sendMsg',
  },
  [PATHS_ALIAS.SEND_LOGIN_MSG]: {
    server: SERVERS_ALIAS.SMK_BASE,
    method: METHOD.POST,
    path: '/loginMsgSend',
  },
  [PATHS_ALIAS.CHECK_REGIEST_WITHOUT_PASS]: {
    server: SERVERS_ALIAS.SMK_BASE,
    method: METHOD.POST,
    path: '/checkRegiestWithoutPassword',
  },
  [PATHS_ALIAS.LOGIN_MSG_CHECK]: {
    server: SERVERS_ALIAS.SMK_BASE,
    method: METHOD.POST,
    path: '/loginMsgCheck',
  },

  
  
  

  
}